<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>popularize - 注册</title>
    <link href="__STATIC__/public/css/bootstrap.min.css" rel="stylesheet">
</head>

<body>
    <header>
        <div class="jumbotron">
            <h1>前台注册</h1>
        </div>
    </header>
    <main>
        <div style="background-color: #fff;" class="jumbotron">
            <form action="{:Url('registered')}" method="post">
                <div class="form-group">
                    <label for="username">用户名:</label>
                    <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名" autocomplete="off">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label for="superior_id">推广人</label>
                    <select class="form-control" id="superior_id" name="superior_id">
                        <option selected>请选择推广人</option>
                        {volist name="data" id="row"}
                            <option value="{$row.id}">{$row.username}</option>
                        {/volist}
                    </select>
                </div>
                <button type="submit" class="btn btn-primary">注册</button>
            </form>
            <p><span style="float: right;">已经有账号？<a href="{:Url('login')}">立刻登录</a></span></p>
        </div>
    </main>
</body>

</html>